//主页界面

#include "HomeStage.h"

#include <vector>
#include <math.h>

#include "LUI/LUI.h"

using namespace std;
//std::vector<SDL_Point *> *heartdata;

int W=800,H=1280;

LLabel *label;

HomeStage::HomeStage(Context *ctx) :Stage(ctx) {
  label=new LLabel("hello label", 400,200);

	}

void HomeStage::logic() {

}

      void HomeStage::update(GraphicsFrameWork * g) {

	
        //  i++;
        // sprintf(str, "%d", i);

        //  g->Clear();
        g->Cls(0, 0, 0);
        // g->Text(str, 250, 300, 200, 255, 255,        255);

        label->render(g);

        //g->Text("模拟人生",g->getGameXPoint(W/2), g->getGameYPoint(H/8), 150, 255, 255, 255);
       // g->Text("Power By SDL2", g->getGameXPoint(1280/2), g->getSCRH() - 200, 40, 255, 255, 0);
        
        
        // g->DrawPoint(200, 200,  255, 0,0);
        g->Show();
      }